let vm = new Vue({
    el:'.main-container',  //选中整个main
    data() {
        return {
            user: {},
        }
    },
    methods:{
        getUserInfo:function () {
            let mapStr = sessionStorage.getItem("map");
            let map = JSON.parse(mapStr);
            if (map != undefined) {
                this.user=map.loginUser;
            } else {
                // location.href='login.html';
            }
            console.log(this.user)
        }
    },
    created:function () {
        this.getUserInfo();
    },

});